#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Vaibhav
#
# Created:     04/11/2012
# Copyright:   (c) Vaibhav 2012
# Licence:     <your licence>
#-------------------------------------------------------------------------------

import sys

def main():
    for arg in sys.argv[1:]:
        try:
            f = open(arg, 'r')
        except IOError:
            print 'cannot open', arg
        else:
            print arg, 'has', len(f.readlines()), 'lines'
            f.close()

if __name__ == '__main__':
    print "\"" + __name__ + "\""
    main()
